import request from '@/utils/request'

//文件整理取消接收
export function cancelAccept(query) {
  return request({
    url: '/archive/wjzl/cancelAccept',
    method: 'PUT',
    params: query
  })
}
//归档申请单
export function addArchiveFormSave(data) {
  return request({
    url: '/archive/archiveFormSave/batchInsert',
    method: 'post',
    data: data
  })
}


//归档申请单
export function yuguidang(data) {
  return request({
    url: '/archive/yuguidang/batchInsert',
    method: 'post',
    data: data
  })
}

//文件整理导出
export function exportPost(data) {
  return request({
    url: '/archive/wjzl/export',
    method: 'post',
    data: data
  })
}

//退回
export function tuihui(query) {
    return request({
      url: '/archive/lxjs/tuihui',
      method: 'POST',
      params: query
    })
  }

  // 预归档--获取档号规则字段
export function getRule(query) {
  return request({
    url: '/archive/codelist/getNameByColumn',
    method: 'get',
    params: query
  })
}

// 预归档--档号查缺确认
export function dhOfCheckForDefects(data) {
  return request({
    url: '/archive/codelist/dhOfCheckForDefects',
    method: 'post',
    data: data
  })
}

// 预归档--合并卷前验证
export function assemblyFolderVerifyygd(data) {
  return request({
    url: '/archive/lxjs/assemblyFolderVerify',
    method: 'post',
    data: data
  })
}

// 预归档--合并卷
export function assemblyFolderygd(data) {
  return request({
    url: '/archive/yuguidang/assemblyFolder',
    method: 'POST',
    data: data
  })
}

// 预归档--排卷号/排件号
export function pieceNumber(data) {
  return request({
    url: '/archive/yuguidang/pieceNumber',
    method: 'put',
    data: data
  })
}

// 预归档--清空卷/件档号
export function clearNumber(data) {
  return request({
    url: '/archive/yuguidang/clearNumber',
    method: 'put',
    data: data
  })
}

// 预归档--手动排档号获取著录项值
export function getLastZlx(data) {
  return request({
    url: '/archive/yuguidang/getLastZlx',
    method: 'post',
    data: data
  })
}

// 预归档--手动排档号保存
export function insertPieceNumber(data) {
  return request({
    url: '/archive/yuguidang/insertPieceNumber',
    method: 'put',
    data: data
  })
}

// 预归档--退回
export function ygdtuihui(data) {
  return request({
    url: '/archive/yuguidang/tuihui',
    method: 'post',
    data: data
  })
}


//归档申请单
export function daIdsDetection(data) {
  return request({
    url: '/archive/detectionObject/daIdsDetection',
    method: 'post',
    data: data
  })
}
//获取不通过详情
export function getDetail(query) {
  return request({
    url: '/archive/detectionObject/getDetail',
    method: 'GET',
    params: query
  })
}

// 归档--项目下卷层
export function dgdJieshou(data) {
  return request({
    url: '/archive/szh/dgdJieshou',
    method: 'post',
    data: data
  })
}
